package com.wfl.sampling.dao;

import com.wfl.sampling.entity.UserParticipation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author gefangjie
 */
@Mapper
public interface UserParticipationDao {

    //添加参与活动
    void addParticipation(int userId, int activityId);
    //删除参与活动
    void deleteParticipation(int userId, int activityId);
    //检查是否参与活动
    boolean checkParticipation(int userId, int activityId);
    //更新支付状态
    void updatePaymentStatus(int userId, int activityId);
    //通过用户id查询参与活动
    List<UserParticipation> queryUpByUserId(int userId);
}
